﻿using System.ComponentModel.DataAnnotations.Schema;

namespace DAL.Entity
{
    [Table("tb_system_run_status_info_v1")]
    public class SystemRunStatusEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Column("id")]
        public int Id { get; set; }

        [Column("station_name")]
        public string StationName { get; set; }

        [Column("type")]
        public StationStatusTypeEnum StationType { get; set; }

        [Column("des")]
        public string Des { get; set; }

        [Column("cache_key")]
        public string CacheKey { get; set; }

        [Column("report_enable")]
        public int ReportEnable { get; set; }

        [Column("report_failed_code")]
        public int ReportFailedCode { get; set; }

        [Column("report_sucess_code")]
        public int ReportSucessCode { get; set; }
    }

    public enum StationStatusTypeEnum
    {
        None = 0,
        BelogSMS = 1,
        BelongDMS = 2,
        Both = 3
    }
}